home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSFeatureFactory.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  113 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSFeatureFactory.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSFeatureFactory_h__
  6. #define __gen_nsIDOMNSFeatureFactory_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMNSFeatureFactory */
  19. #define NS_IDOMNSFEATUREFACTORY_IID_STR "dc5ba787-b648-4b01-a8e7-b293ffb044ef"
  20.  
  21. #define NS_IDOMNSFEATUREFACTORY_IID \
  22.   {0xdc5ba787, 0xb648, 0x4b01, \
  23.     { 0xa8, 0xe7, 0xb2, 0x93, 0xff, 0xb0, 0x44, 0xef }}
  24.  
  25. class NS_NO_VTABLE nsIDOMNSFeatureFactory : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSFEATUREFACTORY_IID)
  29.  
  30.   /**
  31.    * @param object: usually either nsIDOMNode or nsIDOMDOMImplementation
  32.    * @param feature: the name of the feature
  33.    * @param version: the version of the feature
  34.    */
  35.   /* boolean hasFeature (in nsISupports object, in DOMString feature, in DOMString version); */
  36.   NS_IMETHOD HasFeature(nsISupports *object, const nsAString & feature, const nsAString & version, PRBool *_retval) = 0;
  37.  
  38.   /**
  39.    * @param object: usually either nsIDOMNode or nsIDOMDOMImplementation
  40.    * @param feature: the name of the feature
  41.    * @param version: the version of the feature
  42.    */
  43.   /* nsISupports getFeature (in nsISupports object, in DOMString feature, in DOMString version); */
  44.   NS_IMETHOD GetFeature(nsISupports *object, const nsAString & feature, const nsAString & version, nsISupports **_retval) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIDOMNSFEATUREFACTORY \
  50.   NS_IMETHOD HasFeature(nsISupports *object, const nsAString & feature, const nsAString & version, PRBool *_retval); \
  51.   NS_IMETHOD GetFeature(nsISupports *object, const nsAString & feature, const nsAString & version, nsISupports **_retval); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIDOMNSFEATUREFACTORY(_to) \
  55.   NS_IMETHOD HasFeature(nsISupports *object, const nsAString & feature, const nsAString & version, PRBool *_retval) { return _to HasFeature(object, feature, version, _retval); } \
  56.   NS_IMETHOD GetFeature(nsISupports *object, const nsAString & feature, const nsAString & version, nsISupports **_retval) { return _to GetFeature(object, feature, version, _retval); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIDOMNSFEATUREFACTORY(_to) \
  60.   NS_IMETHOD HasFeature(nsISupports *object, const nsAString & feature, const nsAString & version, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasFeature(object, feature, version, _retval); } \
  61.   NS_IMETHOD GetFeature(nsISupports *object, const nsAString & feature, const nsAString & version, nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeature(object, feature, version, _retval); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsDOMNSFeatureFactory : public nsIDOMNSFeatureFactory
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSIDOMNSFEATUREFACTORY
  72.  
  73.   nsDOMNSFeatureFactory();
  74.  
  75. private:
  76.   ~nsDOMNSFeatureFactory();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsDOMNSFeatureFactory, nsIDOMNSFeatureFactory)
  84.  
  85. nsDOMNSFeatureFactory::nsDOMNSFeatureFactory()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsDOMNSFeatureFactory::~nsDOMNSFeatureFactory()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* boolean hasFeature (in nsISupports object, in DOMString feature, in DOMString version); */
  96. NS_IMETHODIMP nsDOMNSFeatureFactory::HasFeature(nsISupports *object, const nsAString & feature, const nsAString & version, PRBool *_retval)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* nsISupports getFeature (in nsISupports object, in DOMString feature, in DOMString version); */
  102. NS_IMETHODIMP nsDOMNSFeatureFactory::GetFeature(nsISupports *object, const nsAString & feature, const nsAString & version, nsISupports **_retval)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110. #define NS_DOMNS_FEATURE_PREFIX "MozillaDOMFeature-"
  111.  
  112. #endif /* __gen_nsIDOMNSFeatureFactory_h__ */
  113.